//
//  twoViewController.m
//  demo
//
//  Created by liulei on 2019/1/18.
//  Copyright © 2019年 www.icbc.com.cn. All rights reserved.
//

#import "twoViewController.h"

@interface twoViewController ()

@end

@implementation twoViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    UIButton *text =[[UIButton alloc]initWithFrame:CGRectMake(60,60, 120, 30)];
    [text setBackgroundColor:[UIColor blueColor]];
    [text setTitle:@"JUMP2" forState:UIControlStateNormal];
    [text setTintColor:[UIColor whiteColor]];
    [text addTarget:self action:@selector(push) forControlEvents:UIControlEventTouchUpInside];
    [self.view  addSubview:text];
    [self.view setBackgroundColor:[UIColor whiteColor]];
}
-(void)push{
    
    NSString *str =@"124";
    self.dblock(str);
    
}
-(void)pop{
//
//    NSDictionary *dic = @{@"1":@"11111",@"2":@"22222"};
//    NSArray *arr = @[@"1",@"2",@"3"];
//    NSString *str = @"testStr";
//    [self dismissViewControllerAnimated:YES completion:nil];
//    self.block(dic, arr, str);
}
@end
